<?php
include("include/conn.php");
require('include/Smarty/libs/Smarty.class.php');

$query1 = "DELETE FROM garnumaster
            WHERE garnuMasterId = ".$_GET['garnuMasterId'];
$result1= mysql_query($query1);
if(!$result1)
  echo "DELETING FAILED";
else  
{
  $query2 = "DELETE FROM garnudetail
              WHERE garnuMasterId = ".$_GET['garnuMasterId'];
  $result11= mysql_query($query2);
  
  $query3 = "DELETE FROM garnuother
              WHERE garnuMasterId = ".$_GET['garnuMasterId'];
  $result3= mysql_query($query3);  
}
header("Location:garnuList.php");

require('bottom.php');
?>